<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<base href="../../../../" />
		<script src="page.js"></script>
		<link type="text/css" rel="stylesheet" href="page.css" />
	</head>
	<body>
		[page:BufferAttribute] &rarr;

		<h1>BufferAttribute Types</h1>

		<p class="desc">
			There are nine types of [page:BufferAttribute] available in three.js.
			These correspond to the JavaScript
			[link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#Syntax Typed Arrays].
		</p>

		<code>
		THREE.Float32BufferAttribute
		THREE.Float16BufferAttribute 
		THREE.Uint32BufferAttribute
		THREE.Int32BufferAttribute 
		THREE.Uint16BufferAttribute
		THREE.Int16BufferAttribute 
		THREE.Uint8ClampedBufferAttribute
		THREE.Uint8BufferAttribute 
		THREE.Int8BufferAttribute
		</code>

		<h2>Constructor</h2>

		<p>All of the above are called in the same way.</p>

		<h3>
			TypedBufferAttribute( [param:Array_or_Integer array], [param:Integer itemSize], [param:Boolean normalized] )
		</h3>
		<p>
			array -- this can be a typed or untyped (normal) array or an integer
			length. An array value will be converted to the Type specified. If a
			length is given a new TypedArray will created, initialized with all
			elements set to zero.<br /><br />

			itemSize -- the number of values of the array that should be associated
			with a particular vertex.<br /><br />

			normalized -- (optional) indicates how the underlying data in the buffer
			maps to the values in the GLSL code.
		</p>

		<h2>Properties</h2>

		<p>See the [page:BufferAttribute] page for inherited properties.</p>

		<h2>Methods</h2>

		<p>See the [page:BufferAttribute] page for inherited methods.</p>

		<h2>Source</h2>

		<p>
			[link:https://github.com/mrdoob/three.js/blob/master/src/core/BufferAttribute.js src/core/BufferAttribute.js]
		</p>
	</body>
</html>
